package com.server.llh.llhserverwork.utils;

import android.os.Environment;

import java.io.File;

public class Constant {


	public static final String WAITE_FOR_ASSIGN = "1";//系统自动派单
	public static final String ASSIGN_TO_WAITERS = "2"; //客户指定派给服务员
	public static final String WAITERS_CONFUSE_SATAUS ="3"; //服务员已拒单
	public static final String CUSTOMER_WAITERS_ACCEPT ="4"; //客户指定的服务员已接单
	public static final String SYSTOMER_WAITERS_ACCEPT ="5"; //服务员已抢单
	public static final String SERVICE_HAVE_COMPLETE ="6";//任务执行完成
	public static final String SERVICE_HAVE_DENYED ="7";//撤单
	public static final String SERVICE_HAVE_CANCEL="8";//取消
	public static final String WAITER_AUTOMATIC_FAILED="9";//服务员撤单
	public static final String WAITER_CAN_NOT_REFUSE="10";//人工指派给某个服务员 服务员不能拒绝
	public static final String SYSTEM_ASSIGN_WAITERS ="11";//人工紧急派单中
	public static final String WAITER_EXCUTE_ING ="12";//任务执行中
	public static final String WAITER_NOT_CLOSE ="13";//任务未签退关闭

	/**
	 * cate
	 */
	public static final String CATE = "lelaohui_server";
	public static final String IpImage = "http://192.168.11.103:8080";

	// 139.129.53.109 60080
	public static final int CHANNEL = 1;// 购买渠道
	public static final int ISEMPTYSHOW = 1;// 服务类别显示
	public static final int PACKSTATUS = 6;// 服务类别状态

//	 public static final String IP = "www.pietyeast.com";
	 public static final String IP = "192.168.11.189";
//	public static final String IP = "192.168.11.123";
	// public static final String IP = "192.168.11.57";
//	 public static final String NET_IP = "http://192.168.11.103";
//	 public static final String IP = "www.lelaohui.com.cn";
	// public static final String IP="111.204.236.5";
	// public static final String PORT="60091";
	public static final String IMAGE_URL = "http://111.204.236.3:8081";

	public static final String PORT = "60090";
	// public static final String PORT = "6379";
	public static final String NET_IP = "http://111.204.236.3:8081";
	public static final String PORT_NET = ":8081";
	// public static final String PORT="60080";
	public static final int USER_TYPE_INT = 1;// 机构客户
	public static final int CARD_TYPE = 6;
	public static final int CARD_TYPE1 = 1;
	public static final int CARD_TYPE8 = 8;
	public static final int TRADE_TYPE = 3;
	public static final int TRADE_TYPE4 = 4;
	public static final int TRADE_TYPE9 = 9;
	public static final int TRADE_TYPE8 = 8;
	public static final int TRADE_TYPE7 = 7;
	public static final int WATER_TYPE = 9;
	public static final String APK_NAME = "服务员客户端";
	public static final String CHACK_SUCC = "校验成功";// 版本校验

	public static final int LOGIN_TYPE30 = 3;// userId
	public static final int LOGIN_TYPE2 = 2;// 手机号
	public static final int LOGIN_TYPE1 = 1;// 用戶名密碼
	public static final int LOGIN_TYPE0 = 0;// 卡

	public static final int DEVICE_TYPE = 0;

	public static final int WATER_TYPE1 = 1;// 充值
	public static final String DEVICE_USE_BUY = "1";// 购买
	public static final String DEVICE_USE_GIVE = "2";// 赠送
	public static final String DEVICE_USE_RENEW = "3";// 续费
	public static final String DEVICE_USE_RETURN = "4";// 退还
	/**
	 * 设备类型 TRADE_TYPE 购买
	 * 
	 */
	public static final int PAYWAY8 = 8;

	public static final int ORDER_QTY = 1;
	public static final int TRADE_TYPE1 = 1;
	/**
	 * 日志Tag
	 */
	public static final String TAG = "llh";
	/**
	 * 卡类
	 */
	// public static final int CARD_TYPE= 1;
	/**
	 * 支付类型
	 */
	public static final int tradeType = 3;

	public static final String USERID = "userId";
	public static final String USERNAME = "userName";
	public static final String PWD = "pwd";
	/**
	 * 令牌
	 */
	public static final String TOKEN = "userToken";
	/**
	 * 用户类型
	 */
	public static final String USERTYPE = "userType";
	/**
	 * 时间
	 */
	public static final String STAMPT = "timeStampt";
	/**
	 * 商家类型
	 */
	public static final String MERTYPE = "merType";
	/**
	 * 养�?机构
	 */
	public static final String MERID = "merchantId";
	/**
	 * 登录类别
	 */
	public static final int LOGIN_TYPE = 0;
	public static final int LOGIN_TYPE3 = 3;
	public static final int LOGIN_TYPE4 = 4;
	public static final int USER_TYPE = 1;
	public static final int CHANNEL_APP = 100;

	/**
	 * 机构类型
	 */
	public static final int ORG_TYPE = 0;
	public static final int ORG_ID_DATA = 0;

	/**
	 * 
	 * 机构代码
	 */
	public static final String ORG_ID = "orgId";
	public static final String ORG_NAME = "orgName";
	public static final String CARD_NO = "cardNo";
	public static final String TELEPHONE = "telephone";
	public static final String BALANCE = "balance";

	public static final String timeStampt = "timeStampt";
	public static final String USER_ICON_CACHE_DIR = Environment
			.getExternalStorageDirectory() + File.separator + "houseKeep/";
	public static final String READ_CARDACTION = "com.lelaohui.llhreadcardlib.getCardId";
	public static final String SET_CARDACTION = "com.lelaohui.llhreadcardlib.setCardIdNull";
	public static final String ACTION = "com.llh.readCard.service";
	public static final String ACTION_EXE = "com.llh.readCard.exception";
	public static final String ACTION_BROADCAST = "com.llh.readCard.exceptio";
	public static final String ACTION_LOOP_INTENT = "com.llh.readCard.loop.service";
	public static final String ACTION_LOOP = "com.llh.readCard.loop";
	public static final String OPEN_CONNECT = "com.lelaohui.open.connect";
	public static final String SET_OPEN_CONNECT = "com.lelaohui.open.setconnect";

	public static final class REQ_ACTION {

		/**
		 * 体征查询接口
		 */
		public static final String QUERY_SIGNS = "";
		/**
		 * 用药查询
		 */
		public static final String QUERY_DRUG = "";

		/**
		 * 护理查询
		 */
		public static final String QUERY_HEALTH = "";

		/**
		 * 生活查询
		 */
		public static final String QUERY_LIVE = "";
		/**
		 * 餐食查询
		 */
		public static final String QUERY_FOOD = "";
		/**
		 * 喝水查询
		 */
		public static final String QUERY_DRINK_WATER = "";
		/**
		 * 排便查询
		 */
		public static final String QUERY_DEFECATE = "";
		/**
		 * 数据应答
		 */
		public static final String RESPONSE = ".response";

		public static final String TEST_INFORMATION_LIST = "/paperInterfaceInfoNameSpace/onLineTestInfoListService.do";
		public static final String INFORMATION_LIST = "/data/getConsultListTop.json";
		public static final String INFO_CONTENT = "/data/showContent.json";
		public static final String BIND_CAMERA = "/data/bindCamera.json";
		public static final String USER_BALANCE = "/data/getCardValueByUserId.json";
		public static final String SERVICE_LIST = "/data/getCameraPackageList.json";

		public static final String MAGCARD_LOGON_ACTION = "/data/loginByCard.json";
		public static final String LOGON_ACTION = "/data/chklogin.json";
		/**
		 * 获取产品、服务或者产品的类别(根据参数的不同，返回不同)
		 */
		public static final String CATEGOR_ACTION = "/data/getCate.json";
		/**
		 * 据类别查询其中的服务或产品(两者通用)
		 */
		public static final String PROBYCATEID_ACTION = "/data/getProByCateId.json";
		/**
		 * 获取食物list
		 */
		public static final String GETDIETBYCATEID_ACTION = "/data/getDietByCateId.json";
		/**
		 * 订餐
		 */
		public static final String FOOT_ACTION = "/data/getDietCategory.json";
		/**
		 * 为产品下单
		 */
		public static final String PLACEPROORDER_ACTION = "/data/placeProOrder.json";
		/**
		 * 为食品下单
		 */
		public static final String FOOT_ORDER_ACTION = "/data/placeDiet.json";
		/**
		 * 查询食品的订单
		 */
		public static final String QUERY_FOOT_ORDER_ACTION = "/data/orderedDiet.json";
		public static final String QUERY_SHOP_ORDER_ACTION = "/data/orderedProduct.json";

	}

	public static final class RESPONSE_CODE {
		/**
		 * 失败
		 */
		public static final String FAIL_CODE = "0";

		public static final String ERORR_CODE = "1";
		/**
		 * 成功
		 */
		public static final String SUCCESS_CODE = "2";
		public static final String CREATE_ORDER_SUCCESS_CODE = "0";
	}

	public static final class CACHE_KEY {
		/**
		 */
		public static final String PRODUCT_TYPE_KEY = "PRODUCT_TYPE_KEY";
		/**
		 */
		public static final String SERVICE_TYPE_KEY = "SERVICE_TYPE_KEY";
		/**
		 * 明天
		 */
		public static final String FOOT_TOMORROW_KEY = "FOOT_TOMORROW_KEY";
		/**
		 * 后天
		 */
		public static final String FOOT_AFTERTOMORROW_KEY = "FOOT_AFTERTOMORROW_KEY";
		public static final String FOOT_TODAY_KEY = "FOOT_TODAY_KEY";
		/**
		 * 成功
		 */
		public static final String SUCCESS_CODE = "2";
	}

	public static final String WEATHER_URL = "http://wthrcdn.etouch.cn/weather_mini?city=";
	public static final String WEATHER_REFRESH = "com.llh.refresh.view";

	public static final class ReqActionPort {
		/**
		 * 返回
		 */
		public static final String RESPONSE = ".response";
		/**
		 * 上传用户签到接口
		 */
		public static final String UPLOAD_SIGNIN_INFO = "operateSerSignRecord";
		/**
		 * 上传用户签退接口
		 */
		public static final String UPLOAD_SIGNOUT_INFO = "operateSerSignRecord";
		/**
		 * 获取用户信息
		 */

		public static final String QUERY_USER_INFO = "query.userInfo";
		public static final String QUERY_USER_ADDRESS_INFO = "query.user.address";
		public static final String QUERY_MESSAGE_INFO = "query.messagelist";
		/**
		 * 上传请假信息
		 * 
		 */
		public static final String LEAVE_INFO = "user.holiday.request";
		public static final String QUERY_LEAVE_INFO = "test";
		public static final String QUERY_SERVER_INFO = "query.food.payinfo";
		/**
		 * 餐饮下单成功接口
		 * 
		 */
		public static final String QUERY_ORDER_SUCC_INFO = "query.food.payinfo";
		/**
		 * 获取试题
		 */
		public static final String QUERY_TEST_INFO = "query.examination";
		/**
		 * 获取老人评估结果
		 */
		public static final String QUERY_TEST_INFO_LIST = "query.examination.result";
		/**
		 * 試題內容
		 */
		public static final String QUERY_TEST_INFOS = "query.examination.info";
		/**
		 * 用户评估上传（答题）user.examination
		 */
		public static final String USER_EXAMINATION = "user.examination";

		/********************************* 服务 *********************************************/
		/**
		 * 获取一级大类
		 */

		public static final String GET_SERVER_INFO = "getSerProCateJsonList";
		/**
		 * 上传订单
		 */
		public static final String UPLOAD_SERVER_ORDER = "calOrderMoney";
		/**
		 * 获取服务项
		 */
		public static final String GET_SERVERJSON_INFO = "getInitSerProPackList";
		public static final String GET_SERVER_SEARCH_JSON_INFO = "getInitSerProPackListByKeyWord";
		/**
		 * 确认下订单
		 */
		public static final String UPLOAD_SERVER_ORDER_INFO = "saveMobileOrderInfo";
		/**
		 * 服务支付接口
		 */
		public static final String UPLOAD_SERVER_ORDER_PAYMENY = "serverOrderPayment";
		/**
		 * 获取服务任务接口
		 */
		public static final String GET_SERVERHEALTH_INFO = "test";
		/**
		 * 服务抢单
		 */
		public static final String GET_SERVER_GRAB_INFO = "searchAutomaticTask";
		/**
		 * 获取 订单列表
		 */
		public static final String GET_SERVER_ORDER_SUCC_INFO = "getSerOrderInfos";
		/**
		 * 重派 执行
		 */
		public static final String UPLOAD_SERVER_TASK_INFO = "updateAppointmentStatusForApp";
		/**
		 * 服务员查询任务列表
		 */
		public static final String GET_SERVER_TASK_INFO = "searchTaskForWaitersForApp";
	}

	public static final class FinishActivityBroadCast {
		public static final String FINISH_ORDERSUMIT_ACTION = "com.llh.finish.foodOrderSubmit";
		public static final String FINISH_SHOPFOOD_ACTION = "com.llh.finish.ShopFoodFinish";
		public static final String CLEAR_ACTION = "com.llh.cleanShoppingCar";
		/**
		 * 我的服务
		 */
		public static final String MY_SERVER_ACTION = "com.llh.myServerAction";
		/**
		 * 我的预约 subscribe
		 */
		public static final String MY_SUBSCRIBE_ACTION = "com.llh.mySubscribeAction";
		/**
		 * 完成任务
		 */
		public static final String MY_SERVER_FINISH_ACTION = "com.llh.myServerFinishAction";
		/**
		 * 提交试题答案
		 */
		public static final String UPLOAD_TEST_INFO_ACTION = "com.llh.myTestInfoAction";
	}

	/**
	 * 订单状态
	 */
	public static final Integer ORDER_WAITE_PAY_STATUS = 0; // 等待付款
	public static final Integer ORDER_WAITE_CONSUME = 1; // 待客户就餐
	public static final Integer ORDER_WAIT_SEND_STATUS = 2; // 待配送
	public static final Integer ORDER_SENDING_STATUS = 3; // 配送中

	public static final Integer ORDER_SEND_OVER_STATUS = 4;// 配送成功

	public static final Integer ORDER_SUCESS_OVER_STATUS = 5;// 交易成功
	public static final Integer ORDER_CLOSE_OVER_STATUS = 6;// 交易关闭

	public static final Integer ORDER_CANCEL_SUCCESS_STATUS = 7;// 订单已取消

	public static final Integer ORDER_REFUNDING_STATUS = 8;// 退款中
	public static final Integer ORDER_REFUND_OVER_STATUS = 9;// 退款成功

	public static final int PAY_STATUS_SUCC = 1;
	public static final int PAY_STATUS_NO_SUCC = 0;

	/**
	 * 支付方式 payType
	 */
	public static final String CASH_CONSUMPTION = "1"; // 现金支付
	public static final String LELAOKA_COUSUMPTION = "6"; // 乐老卡支付
	public static final String ZHIFUBAO_CONSUMPTION = "5";// 支付宝支付
	public static final String WE_CHAT_CONSUMPTION = "4";// 微信支付
	public static final String BANK_CARD_CONSUMPTION = "3";// pos机支付
	public static final String VIRTUAL_CASH_CONSUMPTION = "2";// 虚拟现金支付
	public static final String OFF_LINE_CONSUMPTION = "7";// 到付

	public static final String SERVER_SING_IN = "0";// 签到
	public static final String SERVER_SING_OUT = "1";// 签退
	/**
	 * 护理数据库名称
	 */
	public static final String HEALTH_TASK_TABLE_NAME = "serverTask";
	public static final String HEALTH_TASK_DATABASE_NAME = "serverHealthTask";
	public static final String TEST_TASK_DATABASE_NAME = "testInfoList";
	public static final int VERSION_INT = 2;

	public static final String HEALTH_DAO_VALUE[] = { "serTransId",
			"serviceName", "customerId", "customerName", "customerPhone",
			"orgName", "orgTypeId", "orgId", "proWaitersNum", "serEndTime",
			"serStartTime", "transStatus", "addTime", "price" };
	public static final String TEST_DATA_KEY[] = { "paperId", "paperContent" };

	/**
	 * 护理类型
	 */
	public static final String HEALTH_DINS_TASK = "0";
	public static final String HEALTH_QIJ_TASK = "1";
	/**
	 * 护理完成状态
	 */
	public static final String HEALTH_TASK_FINISH = "0";
	public static final String HEALTH_TASK_UNFINISH = "1";

	public static final String[] imageUrls = new String[] {
			"http://www.lelaohui.com/html/upload/day_160514/201605141402095635.png",
			"http://www.lelaohui.com/html/upload/day_160514/201605141354026248.png",
			"http://www.lelaohui.com/html/upload/day_160514/201605141350478764.png",
			"http://www.lelaohui.com/html/upload/day_160514/201605141354026248.png",
			"http://www.lelaohui.com/html/upload/day_160514/201605141402095635.png",
			"http://www.lelaohui.com/html/upload/day_160514/201605141400395021.png",
			"http://www.lelaohui.com/html/upload/day_160514/201605141354026248.png",
			"http://www.lelaohui.com/html/upload/day_160514/201605141402095635.png" };
	public static final String[] imageUris = new String[] {
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928545&idx=1&sn=224efb8840fa79b3461fa4fe9fe1e26c&scene=18#wechat_redirect",
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928546&idx=1&sn=66ce6b2f5f1596d3ce6219d7cebd7b5e&scene=18#wechat_redirect",
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928550&idx=1&sn=fb33ae463660efb0fbcab9e2d933b745&scene=18#wechat_redirect",
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928551&idx=1&sn=03e086e8452c9494261850d9cdcf5bb5&scene=18#wechat_redirect",
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928554&idx=1&sn=afaa8179d12b6c0e3882a51796187b32&scene=18#wechat_redirect",
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928556&idx=1&sn=8bd5f10d4a1f17abe5397e62d1bca8ff&scene=18#wechat_redirect",
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928557&idx=1&sn=8b76ad99182c751d230cb91133e130fc&scene=18#wechat_redirect",
			"http://mp.weixin.qq.com/s?__biz=MzA3Nzk1NzkwMQ==&mid=503928561&idx=1&sn=1a8d8a42d23b5d4924fcd278de504b63&scene=18#wechat_redirect" };
}
